import request from '../utils/request';

/**
 * 根据类型获取所有分类
 * type: TOPIC/COURSE/TRAIN/TEACH/NEWS
 */
export const getAllTypeList = (params) => {
  return request.get(`/project/category/getCategoryTreeListByType`, { params });
};
